package com.stream.service.impl;

import com.stream.model.entity.ScheduleJobLogEntity;
import com.stream.repository.ScheduleJobLogRepository;
import com.stream.service.ScheduleJobLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by yebaokang on 2017/6/30.
 */
@Service("scheduleJobLogService")
public class ScheduleJobLogServiceImpl implements ScheduleJobLogService {

    @SuppressWarnings("SpringJavaAutowiringInspection")
    @Autowired
    private ScheduleJobLogRepository scheduleJobLogRepository;
    
    @Override
    public ScheduleJobLogEntity queryObject(Long jobId) {
        return scheduleJobLogRepository.queryObject(jobId);
    }

    @Override
    public List<ScheduleJobLogEntity> queryList(Map<String, Object> map) {
        return scheduleJobLogRepository.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return scheduleJobLogRepository.queryTotal(map);
    }

    @Override
    public void save(ScheduleJobLogEntity jobLog) {
        scheduleJobLogRepository.save(jobLog);
    }
}
